rendernodeparser: Fix a memory leak when parsing textures
authorTimm Bäder <mail@baedert.org>
Sun, 21 Jul 2019 07:06:29 +0000 (09:06 +0200)
committerTimm Bäder <mail@baedert.org>
Sun, 21 Jul 2019 07:06:29 +0000 (09:06 +0200)
gsk/gskrendernodeparser.c

index 4e8a337048506461bb1b0c5198da762c396f48af..402ee3e5e4899886d7e05625bb7431823b78ed43 100644 (file)
@@ -94,6 +94,7 @@ parse_texture (GtkCssParser *parser,
       if (bytes)
         {
           stream = g_memory_input_stream_new_from_bytes (bytes);
+          g_bytes_unref (bytes);
           pixbuf = gdk_pixbuf_new_from_stream (stream, NULL, &error);
           g_object_unref (stream);
           if (pixbuf != NULL)